package com.report.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer
 * @since 2024/06/30 21:03:34
 */
@Getter
@Setter
@TableName("research_member")
public class Member implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户昵称
     */
    @TableField("nickName")
    private String nickName;

    /**
     * 账号id
     */
    @TableField("idNum")
    private String idNum;

    /**
     * 手机号码
     */
    @TableField("phone")
    private String phone;

    /**
     * 创建时间
     */
    @TableField(value = "createTime",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 用户密码
     */
    @TableField("password")
    private String password;

    /**
     * 0 为绑定 1绑定
     */
    @TableField("is_wx")
    private Integer isWx;

    /**
     * 关注公众号的openid
     */
    @TableField("openid")
    private String openId;

    /**
     * 0 普通会员 1 vip
     */
    @TableField("member_state")
    private Integer memberState;

    /**
     * 会员规则主键
     */
    @TableField("rule_id")
    private Integer ruleId;

    /**
     * 有效时间
     */
    @TableField(value = "effective_time")
    private LocalDate effectiveTime;


    /**
     * 头像
     */
    @TableField("avatarUrl")
    private String avatarUrl;


    @TableField("zanNum")
    private Integer zanNum;


    private String unionId;

    @TableField("mini_openId")
    private String miniOpenId;


    @TableField("login_time")
    private LocalDateTime loginTime;

}
